import request from '@/utils/request'

// 查询设施费用列表
export function listFeFacility(query) {
  return request({
    url: '/life/feFacility/list',
    method: 'get',
    params: query
  })
}

// 查询设施费用详细
export function getFeFacility(id) {
  return request({
    url: '/life/feFacility/' + id,
    method: 'get'
  })
}

// 新增设施费用
export function addFeFacility(data) {
  return request({
    url: '/life/feFacility',
    method: 'post',
    data: data
  })
}

// 修改设施费用
export function updateFeFacility(data) {
  return request({
    url: '/life/feFacility',
    method: 'put',
    data: data
  })
}

// 删除设施费用
export function delFeFacility(id) {
  return request({
    url: '/life/feFacility/' + id,
    method: 'delete'
  })
}
